import React from "react";
import {connect} from "dva";
import {DatePicker, Descriptions, Table} from 'antd';
import moment from "moment";
import time, {dateFormat} from "@/utils/time";


class LoseScore extends React.Component {


  componentDidMount() {
    this.props.dispatch({
      type: 'gaoluDiagnose/getItemScore'
    });
  }

  render() {

    const {group} = this.props.itemScore

    return (
      <div>
        <Table pagination={false} columns={[{
          title: '名称 ',
          dataIndex: 'name',
          key: 'name',
        },
          {
            title: '总分',
            dataIndex: 'totalScore',
            key: 'totalScore',
          },
          {
            title: '失分值',
            dataIndex: 'loseScore',
            key: 'loseScore',
          },
          {
            title: '失分率',
            dataIndex: 'loseRate',
            key: 'loseRate',
          }]} dataSource={group} showHeader={false}/>
      </div>
    )
  }
}


export default connect(({global, loading,gaoluDiagnose}) => ({
  itemScore: gaoluDiagnose.itemScore,
  global
}))
(LoseScore);
